package com.cws.service;

import java.util.List;

import com.cws.dto.PageReq;
import com.cws.model.SysUser;
import com.jfinal.plugin.activerecord.Page;

public class UserService {

	private static final UserService instance = new UserService();

	private UserService() {
	}

	public static UserService getInstance() {
		return instance;
	}

	public List<SysUser> getAllUser() {
		return SysUser.dao.find("select * from sysUser");
	}

	public Page<SysUser> getByPage(PageReq req) {
		return SysUser.dao.getByPage(req);
	}
}
